gtkradio*: add (allow-none) annotations were appropriate
authorTorsten Schönfeld <kaffeetisch@gmx.de>
Fri, 6 Dec 2013 22:53:41 +0000 (23:53 +0100)
committerTorsten Schönfeld <kaffeetisch@gmx.de>
Fri, 6 Dec 2013 22:57:16 +0000 (23:57 +0100)
https://bugzilla.gnome.org/show_bug.cgi?id=679563

gtk/deprecated/gtkradioaction.c
gtk/gtkradiobutton.c
gtk/gtkradiomenuitem.c
gtk/gtkradiotoolbutton.c

index 6b3c657fc25a11d93f4d7eaf7fbeb4921b45c69e..94bb219cf6ff8323bc5746908a3f07742ba5d798 100644 (file)
@@ -432,7 +432,7 @@ gtk_radio_action_get_group (GtkRadioAction *action)
 /**
  * gtk_radio_action_set_group:
  * @action: the action object
- * @group: (element-type GtkRadioAction): a list representing a radio group
+ * @group: (element-type GtkRadioAction) (allow-none): a list representing a radio group, or %NULL
  *
  * Sets the radio group for the radio action object.
  *
index b4f375cffbf7aa2a60288d06b10ee00f17be6a55..5232ce479eefdaff7a9cadc43dfd27761181011f 100644 (file)
@@ -264,8 +264,8 @@ gtk_radio_button_get_property (GObject    *object,
 /**
  * gtk_radio_button_set_group:
  * @radio_button: a #GtkRadioButton.
- * @group: (transfer none) (element-type GtkRadioButton): an existing radio
- *     button group, such as one returned from gtk_radio_button_get_group().
+ * @group: (element-type GtkRadioButton) (allow-none): an existing radio
+ *     button group, such as one returned from gtk_radio_button_get_group(), or %NULL.
  *
  * Sets a #GtkRadioButton's group. It should be noted that this does not change
  * the layout of your interface in any way, so if you are changing the group,
@@ -449,7 +449,7 @@ gtk_radio_button_new_with_label (GSList      *group,
 /**
  * gtk_radio_button_new_with_mnemonic:
  * @group: (element-type GtkRadioButton) (allow-none): the radio button
- *         group
+ *         group, or %NULL
  * @label: the text of the button, with an underscore in front of the
  *         mnemonic character
  *
index 122d7d2f265e37d7b2df1e8bc79a17182871ffac..607579bab7ad2957556bde94c21e9b097f4801c8 100644 (file)
@@ -93,8 +93,8 @@ G_DEFINE_TYPE_WITH_PRIVATE (GtkRadioMenuItem, gtk_radio_menu_item, GTK_TYPE_CHEC
 
 /**
  * gtk_radio_menu_item_new:
- * @group: (element-type GtkRadioMenuItem): the group to which the
- *    radio menu item is to be attached
+ * @group: (element-type GtkRadioMenuItem) (allow-none): the group to which the
+ *   radio menu item is to be attached, or %NULL
  *
  * Creates a new #GtkRadioMenuItem.
  *
@@ -155,7 +155,7 @@ gtk_radio_menu_item_get_property (GObject    *object,
 /**
  * gtk_radio_menu_item_set_group:
  * @radio_menu_item: a #GtkRadioMenuItem.
- * @group: (element-type GtkRadioMenuItem): the new group.
+ * @group: (element-type GtkRadioMenuItem) (allow-none): the new group, or %NULL.
  *
  * Sets the group of a radio menu item, or changes it.
  */
@@ -237,7 +237,8 @@ gtk_radio_menu_item_set_group (GtkRadioMenuItem *radio_menu_item,
 
 /**
  * gtk_radio_menu_item_new_with_label:
- * @group: (element-type GtkRadioMenuItem) (transfer full):
+ * @group: (element-type GtkRadioMenuItem) (allow-none):
+ *         group the radio menu item is inside, or %NULL
  * @label: the text for the label
  *
  * Creates a new #GtkRadioMenuItem whose child is a simple #GtkLabel.
@@ -257,7 +258,8 @@ gtk_radio_menu_item_new_with_label (GSList *group,
 
 /**
  * gtk_radio_menu_item_new_with_mnemonic:
- * @group: (element-type GtkRadioMenuItem): group the radio menu item is inside
+ * @group: (element-type GtkRadioMenuItem) (allow-none):
+ *         group the radio menu item is inside, or %NULL
  * @label: the text of the button, with an underscore in front of the
  *         mnemonic character
  *
index 40ef6241c54999be7cc4e978d3aa0d5778ef1865..60d0d4a1715086ba0b3d2c0237d7a3ea18eed92a 100644 (file)
@@ -124,7 +124,7 @@ gtk_radio_tool_button_set_property (GObject         *object,
 
 /**
  * gtk_radio_tool_button_new:
- * @group: (allow-none) (transfer none) (element-type GtkRadioButton): An
+ * @group: (allow-none) (element-type GtkRadioButton): An
  *   existing radio button group, or %NULL if you are creating a new group
  * 
  * Creates a new #GtkRadioToolButton, adding it to @group.
@@ -264,7 +264,7 @@ gtk_radio_tool_button_get_group (GtkRadioToolButton *button)
 /**
  * gtk_radio_tool_button_set_group:
  * @button: a #GtkRadioToolButton
- * @group: (transfer none) (element-type GtkRadioButton): an existing radio button group
+ * @group: (element-type GtkRadioButton) (allow-none): an existing radio button group, or %NULL
  * 
  * Adds @button to @group, removing it from the group it belonged to before.
  *